<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-touch-fullscreen" content="yes" />
<meta name="format-detection" content="telephone=no"/>
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<meta name="format-detection" content="telephone=no" />
<meta name="msapplication-tap-highlight" content="no" />
<meta name="viewport" content="initial-scale=1,maximum-scale=1,minimum-scale=1" />
<title>订单管理</title>
<link rel="stylesheet" type="text/css" href="../../css/base.css">
<link rel="stylesheet" type="text/css" href="../../css/nctouch_member.css">
<link rel="stylesheet" type="text/css" href="../../css/nctouch_common.css">
<link rel="stylesheet" type="text/css" href="../../css/nctouch_cart.css">
</head>
<body>
<header id="header" class="fixed">
 <div class="header-wrap">
    <div class="header-l"> <a href="seller.html"> <i class="back"></i> </a> </div>
	  <div class="header-wrap">
		<div class="header-l"><a href="javascript:history.go(-1)"><i class="back"></i></a></div>
		<span class="header-tab"><a href="javascript:void(0);" class="cur">实物订单</a><a href="seller_vr_order_list.html">虚拟订单</a></span>
		<div class="header-r"> <a id="header-nav" href="javascript:void(0);"><i class="more"></i><sup></sup></a> </div>
	  </div>
    <div class="header-r"> <a id="header-nav" href="javascript:void(0);"><i class="more"></i><sup></sup></a> </div>
  </div>
  <div class="nctouch-nav-layout">
    <div class="nctouch-nav-menu"> <span class="arrow"></span>
		<ul>
			<li><a href="seller.html"><i class="home"></i>商家中心</a></li>
			<li><a href="seller_address_list.html"><i class="send"></i>发货地址</a></li>
			<li><a href="seller_express.html"><i class="express"></i>物流公司</a></li>
			<li><a href="seller_account.html"><i class="store"></i>店铺设置<sup></sup></a></li>
			<li><a href="chat_list.html"><i class="message"></i>IM 客服<sup></sup></a></li>
			<li id="logoutbtn"><a href="javascript:void(0);"><i class="exit"></i>退出登录<sup></sup></a></li>
		</ul>
    </div>
  </div>
</header>
<div class="nctouch-main-layout">
  <div class="nctouch-order-search">
    <form>
      <span><input type="text" autocomplete="on" maxlength="50" placeholder="输入商品标题或订单号进行搜索" name="order_key" id="order_key" oninput="writeClear($(this));" >
      <span class="input-del"></span></span>
      <input type="button" id="search_btn" value="&nbsp;">
    </form>
  </div>
  <div id="fixed_nav" class="nctouch-single-nav">
    <ul id="filtrate_ul" class="w20h"> 
      <li class="selected"><a href="javascript:void(0);" data-state="state_new">待付款</a></li> 
      <li><a href="javascript:void(0);" data-state="state_pay">待发货</a></li> 
      <li><a href="javascript:void(0);" data-state="state_send">已发货</a></li> 
      <li><a href="javascript:void(0);" data-state="state_success">已完成</a></li> 
      <li><a href="javascript:void(0);" data-state="state_cancel">已取消</a></li> 
    </ul>
  </div>
  <div class="nctouch-order-list">
    <ul id="order-list">
    </ul>
  </div>
</div>
<div class="fix-block-r">
	<a href="javascript:void(0);" class="gotop-btn gotop hide" id="goTopBtn"><i></i></a>
</div>
<footer id="footer" class="bottom"></footer>
<script type="text/html" id="order-list-tmpl">   
	<%
		var orderlist = datas.order_list;
	%>
		<li class="green-order-skin mt10">
			<%  
			 for (j in orderlist){	 
				 var order_goods = orderlist[j].goods_list;
			%>
				<div class="nctouch-order-item">
					<div class="nctouch-order-item-head">
						 
					 <a class="store">单号:<%=orderlist[j].order_sn%></a>
						 
						<span class="state">
							 
							<span class="<%=stateClass%>"><%=$getLocalTime(orderlist[j].add_time)%></span>
						</span>
					</div>
					<div class="nctouch-order-item-con">
						<%
							var count = 0;
							 for (k in order_goods){
								count += parseInt(order_goods[k].goods_num);
						%>
						<div class="goods-block">
							<div class="goods-pic">
								<img src="<%=order_goods[k].image_60_url%>"/>
							</div>
							<dl class="goods-info">
								<dt class="goods-name"><%=order_goods[k].goods_name%></dt>
								<dd class="goods-type">买家:<%=orderlist[j].buyer_name%></dd> 
							</dl>
							<div class="goods-subtotal">
								<span class="goods-price">￥<em><%=order_goods[k].goods_price%></em></span>
								<span class="goods-num">x<%=order_goods[k].goods_num%></span>
							</div>
						
						</div>
						<%}%>
						 
					</div>
					<div class="nctouch-order-item-footer">
						<div class="store-totle">
							<span>共<em><%=count%></em>件商品，合计</span><span class="sum">￥<em><%=orderlist[j].order_amount%></em></span><span class="freight">(含运费￥<%=orderlist[j].shipping_fee%>)</span>
						</div>    
						<div class="handle"> 
						 
							<a href="javascript:void(0)" class="btn"><%=orderlist[j].state_desc%></a> 

							<%if(orderlist[j].if_delete){%>
							<a href="javascript:void(0)" order_id="<%=orderlist[j].order_id%>" class="del key delete-order"><i></i>移除</a>
							<%}%>
							<%if(orderlist[j].if_lock){%>
							<p>退款/退货中...</p>
							<%}%>
							<%if(orderlist[j].if_store_cancel){%>
							<a href="javascript:void(0)" order_id="<%=orderlist[j].order_id%>" order_sn="<%=orderlist[j].order_sn%>" class="btn key cancel-order">取消订单</a>
							<%}%> 
							<%if(orderlist[j].if_spay_price){%>
							<a href="javascript:void(0)" order_id="<%=orderlist[j].order_id%>" buyer_name="<%=orderlist[j].buyer_name%>" order_sn="<%=orderlist[j].order_sn%>" class="btn key spay-order-price">修改价格</a>
							<%}%>
							 
							
							<%if(orderlist[j].if_store_send){%>
							    <a href="seller_send_order.html?orderid=<%=orderlist[j].order_id%>"   class="btn key">发货</a>
							<%}%>
						</div>
					</div>
				</div>
			<%}%>
			 
		</li> 
	<% if (hasmore) {%>
	<li class="loading"><div class="spinner"><i></i></div>订单数据读取中...</li>
	<% } %>
 
</script> 
 
<script type="text/javascript" src="../../js/zepto.min.js"></script> 
<script type="text/javascript" src="../../js/template.js"></script> 
<script type="text/javascript" src="../../js/config.js"></script> 
<script type="text/javascript" src="../../js/common-seller.js"></script> 
<script type="text/javascript" src="../../js/simple-plugin.js"></script> 
<script type="text/javascript" src="../../js/zepto.waypoints.js"></script> 
<script type="text/javascript" src="../../js/tmpl/seller/seller_order_list.js"></script>
</body>
</html>
